<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>v-blid</title>
    <style></style>
  </head>
  <body>
    <pre></pre>

    <div class="box">
      <div v-bind:style="{width:'100px',height:'100px',background:'red'}">
        对象行内样式
      </div>

      <div v-bind:style="objStyle">
        obj的简写样式
      </div>

      <div v-bind:style="[arrTest]">
        数组的行内样式
      </div>
    </div>

    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
      new Vue({
        el: '.box',
        data: {
          width: '100px',
          height: '100px',
          backgroundColor: 'blue',
          border: '1px solid purple',
          arrTest: 'box-shadow:"1px 1px 1px 1px red"',
          objStyle: {
            width: '100px',
            height: '100px',
            backgroundColor: 'blue',
            border: '1px solid purple',
          },
        },
        methods: {},
      })
    </script>
  </body>
</html>
